home *** CD-ROM | disk | FTP | other *** search
- TRIM(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- TTRRIIMM - Returns the character argument with trailing blank characters
- removed
-
- SSYYNNOOPPSSIISS
- TTRRIIMM (([SSTTRRIINNGG==]_s_t_r_i_n_g))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- DDEESSCCRRIIPPTTIIOONN
- The TTRRIIMM intrinsic function removes trailing blank characters from its
- character argument. If the input string contains trailing blank
- characters, it returns the string without the trailing blanks. If the
- string contains only blanks, it returns a zero-length string. It
- accepts the following argument:
-
- _s_t_r_i_n_g Must be of type character and be a scalar
-
- TTRRIIMM is a transformational function. The name of this intrinsic
- cannot be passed as an argument.
-
- RREETTUURRNN VVAALLUUEESS
- The result is a scalar entity of type character with a length that is
- the length of _s_t_r_i_n_g without any trailing blank characters. The value
- of the result is the same as _s_t_r_i_n_g except that any trailing blanks
- have been removed. If _s_t_r_i_n_g contains only blank characters, the
- result is a string of 0 length.
-
- EEXXAAMMPPLLEESS
- Consider the following example of a TTRRIIMM function reference. In this
- example, the carat (^^) represents a blank:
-
- CHVAR = TRIM( '^W^O^R^D^^' )
- PRINT *,"CHVAR='",CHVAR,"'"
-
- This reference returns the following result:
-
- CHVAR='^W^O^R^D'
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-